<?php
/**
 * Created by inline.
 * User: swb
 * Date: 2022-11-17
 * Time: 10:15
 */
namespace app\store\controller\api\v1;
use library\Controller;
use app\common\controller\BaseApiController;
use app\common\facade\Token;
use app\common\model\SystemUser;
use app\common\model\User;
use app\shop\model\ShopOrder;
// use app\shop\model\ShopOrder;

class StoreUser extends BaseApiController
{
    public function getStoreUser(){
        $store_id = $this->request->param('store_id');
        $res = User::where('store_id',$store_id)->with(['originalStore','store'])->select();
        $this->successCode($res);
    }
    
    public function getUserDetaile(){
        $uid = $this->request->param('uid');
        $res = User::where('id',$uid)->with(['originalStore','store'])->find();
        $this->successCode($res);
    }
}